import type { RouteRecordRaw } from 'vue-router';
import RouterView from '@/layout/routerView/index.vue';

// const routes: Array<RouteRecordRaw> = [
//   {
//     path: '/curd',
//     component: RouterView,
//     redirect: 'curd/cat',
//     meta: {
//       title: '系统列表',
//     },
//     children: [
//       {
//         path: 'cat',
//         name: `cat`,
//         component: () => import('@/views/catCurd/index.vue'),
//         meta: { title: '列表测试11' },
//       },
//       {
//         path: 'role',
//         name: `role`,
//         component: () => import('@/views/system/role/index.vue'),
//         meta: { title: '角色管理' },
//       },
//       {
//         path: 'user',
//         name: `user`,
//         component: () => import('@/views/system/user/index.vue'),
//         meta: { title: '用户管理' },
//       },
//     ],
//   },
// ];
const routes: Array<RouteRecordRaw> = [
    {
      path: 'cat',
      name: `cat`,
      component: () => import('@/views/catCurd/index.vue'),
      meta: { title: '列表测试11' },
    },
    {
      path: 'role',
      name: `role`,
      component: () => import('@/views/system/role/index.vue'),
      meta: { title: '角色管理' },
    },
    {
      path: 'user',
      name: `user`,
      component: () => import('@/views/system/user/index.vue'),
      meta: { title: '用户管理' },
    },
];

export default routes;
